package cn.lingyangwl.agile.food.model.rqrs.goods.category;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 商品分类
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class GoodsCategoryBase {
	
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "分类名称")
	private String name;

	@ApiModelProperty(value = "用于网站搜索引擎的优化，关键字之间请用英文逗号分隔")
	private String keywords;

	@ApiModelProperty(value = "上机分类的编号：0表示一级分类")
	private Long parentId = 0L;
	
	@ApiModelProperty(value = "商品数量")
	private Integer goodsCount;

	@ApiModelProperty(value = "分类logo")
	private String logo;
	
	@ApiModelProperty(value = "排序")
	private Integer sortNo;
	
    @NotNull(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "显示状态, 1: 显示, 0: 不显示")
	private String showStatus;

	@ApiModelProperty(value = "备注")
	private String remark;
}
